<%=content_tag(:div, {:id=>"friendRequestForm", :class =>"hide"}) do%>
     <%=content_tag(:div,nil,{:class=>"panel-group"}) do %>
          <%i = 0%>
          <% @friendRequests.each do |request| %>
               <%=content_tag(:div, nil, {:class=>"panel panel-default"}) do%>
                    <%=content_tag(:div, nil, {:class=>"panel-heading", :style=>"width:176px;"}) do%>
                         <%= content_tag(:h,nil,{:class=>"panel-title"}) do %>
                              <%=link_to request[:name], "#buttons" + i.to_s, {:data=>{:toggle=>"collapse"}} %>
                         <%end%>
                    <%end%>
                    <%= content_tag(:div, nil, {:id=>"buttons"+i.to_s, :class=>"panel-collapse collapse"}) do%>
                         <%=content_tag(:div, nil, {:class=>"panel-body"}) do%>
                              <%=button_to "Accept", {:accept=>"true", :friend_id=>request[:id]}, {:form_class=>"inline-display", :method=>"post", :class=>"btn btn-primary"} %>
                              <%=button_to "Decline", {:accept=>"false", :friend_id=>request[:id]}, {:form_class=>"inline-display", :method=>"post", :class=>"btn btn-default"} %>
                         <%end%>
                    <%end%>
               <%end%>
               <% i=i+1 %>
          <%end%>
     <%end%>
<%end%>
